// store的第二步
// 数据的映射

// 播放器部分数据
export const singer = state => state.singer

export const playing = state => state.playing

export const fullScreen = state => state.fullScreen

export const playlist = state => state.playlist

export const sequenceList = state => state.sequenceList

export const mode = state => state.mode

export const currentIndex = state => state.currentIndex

export const currentSong = (state) => { // 当前播放的歌曲
  return state.playlist[state.currentIndex] || {}
}
// 播放器部分数据

export const disc = state => state.disc // 歌单

export const topList = state => state.topList // 排行榜列表数据

export const searchHistory = state => state.searchHistory // 搜索历史

export const playHistory = state => state.playHistory

export const favoriteList = state => state.favoriteList
